public class Types2 {
    public static void main (String [] args){
        int a = 0;
        int b = 0;
        if (args.length == 2){
            a = Integer.parseInt(args[0]);
            b = Integer.parseInt(args[1]);
        }
        if (a%b == 0){
            System.out.printf("%d ÷ %d = %d",a ,b ,a/b);
        }else {
            System.out.printf("%d ÷ %d = %d ... %d",a ,b ,a/b,a%b);
        }
    }
}
// 使用CMD直接运行，则使用java -Dfile.encoding=utf-8 Types2.java   输出结果不会出现代码